package com.ruoyi.basedocument.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料BOM原材料分录对象 t_bom_materialhalfentry
 * 
 * @author ruoyi
 * @date 2024-09-05
 */
public class BomMaterialhalfentry extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String fid;

    /** 父表id */
    @Excel(name = "父表id")
    private String fparentid;

    private String cfrawmaterialid;
    /** 原材料编码 */
    @Excel(name = "原材料编码")
    private String cfrawmaterialnumbe;
    /** 父编码 */
    @Excel(name = "父编码")
    private String paramnumber;

    /** 原材料名称 */
    @Excel(name = "原材料名称")
    private String cfrawmaterialname;

    /** 原材料计量单位 */
    @Excel(name = "原材料计量单位")
    private String cfrawmaterialunit;

    /** 长编码 */
    private String longCode;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal cfconsumption;

    /** 税率 */
    private BigDecimal cftaxrate;

    public void setFid(String fid) 
    {
        this.fid = fid;
    }

    public BigDecimal getCftaxrate() {
        return cftaxrate;
    }

    public void setCftaxrate(BigDecimal cftaxrate) {
        this.cftaxrate = cftaxrate;
    }

    public String getFid()
    {
        return fid;
    }
    public void setFparentid(String fparentid) 
    {
        this.fparentid = fparentid;
    }

    public String getFparentid() 
    {
        return fparentid;
    }

    public String getCfrawmaterialid() {
        return cfrawmaterialid;
    }

    public void setCfrawmaterialid(String cfrawmaterialid) {
        this.cfrawmaterialid = cfrawmaterialid;
    }

    public void setCfrawmaterialnumbe(String cfrawmaterialnumbe)
    {
        this.cfrawmaterialnumbe = cfrawmaterialnumbe;
    }

    public String getCfrawmaterialnumbe() 
    {
        return cfrawmaterialnumbe;
    }
    public void setCfrawmaterialname(String cfrawmaterialname) 
    {
        this.cfrawmaterialname = cfrawmaterialname;
    }

    public String getCfrawmaterialname() 
    {
        return cfrawmaterialname;
    }
    public void setCfrawmaterialunit(String cfrawmaterialunit) 
    {
        this.cfrawmaterialunit = cfrawmaterialunit;
    }

    public String getCfrawmaterialunit() 
    {
        return cfrawmaterialunit;
    }
    public void setCfconsumption(BigDecimal cfconsumption) 
    {
        this.cfconsumption = cfconsumption;
    }

    public BigDecimal getCfconsumption() 
    {
        return cfconsumption;
    }

    public String getParamnumber() {
        return paramnumber;
    }

    public void setParamnumber(String paramnumber) {
        this.paramnumber = paramnumber;
    }

    public String getLongCode() {
        return longCode;
    }

    public void setLongCode(String longCode) {
        this.longCode = longCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fid", getFid())
            .append("fparentid", getFparentid())
            .append("cfrawmaterialnumbe", getCfrawmaterialnumbe())
            .append("cfrawmaterialname", getCfrawmaterialname())
            .append("cfrawmaterialunit", getCfrawmaterialunit())
            .append("cfconsumption", getCfconsumption())
            .toString();
    }
}
